package com.hog.entity;


import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.format.annotation.NumberFormat;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * Hog系统基本配置表
 *
 * @author 糖先森
 * @date 2018年03月29日
 * @since JDK 1.8
 */
@Table(name = "hog_bas_options")
public class HogBasOptions {
    @Id
    @Column(name = "ID")
    private String id;              // 主键ID
    @Column(name = "options_type")
    private String optionsType;     // 配置类型
    @Column(name = "options_no")
    @NumberFormat(style = NumberFormat.Style.NUMBER)
    private Integer optionsNo;      // 配置序号
    @Column(name = "options_code")
    private String optionsCode;     // 配置Code
    @Column(name = "options_value")
    private String optionsValue;    // 配置值
    @Column(name = "options_desc")
    private String optionsDesc;     // 配置描述
    @Column(name = "lang")
    private String lang;            // 语言
    @Column(name = "crt_user")
    private String crtUser;         // 创建人
    @Column(name = "crt_host")
    private String crtHost;         // 创建地址(IP)
    @Column(name = "crt_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date crtTime;           // 创建时间
    @Column(name = "upd_user")
    private String updUser;         // 更新人
    @Column(name = "upd_host")
    private String updHost;         // 更新地址(IP)
    @Column(name = "upd_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updTime;           // 更新时间

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOptionsType() {
        return optionsType;
    }

    public void setOptionsType(String optionsType) {
        this.optionsType = optionsType;
    }

    public Integer getOptionsNo() {
        return optionsNo;
    }

    public void setOptionsNo(Integer optionsNo) {
        this.optionsNo = optionsNo;
    }

    public String getOptionsCode() {
        return optionsCode;
    }

    public void setOptionsCode(String optionsCode) {
        this.optionsCode = optionsCode;
    }

    public String getOptionsValue() {
        return optionsValue;
    }

    public void setOptionsValue(String optionsValue) {
        this.optionsValue = optionsValue;
    }

    public String getOptionsDesc() {
        return optionsDesc;
    }

    public void setOptionsDesc(String optionsDesc) {
        this.optionsDesc = optionsDesc;
    }

    public String getLang() {
        return lang;
    }

    public void setLang(String lang) {
        this.lang = lang;
    }

    public String getCrtUser() {
        return crtUser;
    }

    public void setCrtUser(String crtUser) {
        this.crtUser = crtUser;
    }

    public String getCrtHost() {
        return crtHost;
    }

    public void setCrtHost(String crtHost) {
        this.crtHost = crtHost;
    }

    public Date getCrtTime() {
        return crtTime;
    }

    public void setCrtTime(Date crtTime) {
        this.crtTime = crtTime;
    }

    public String getUpdUser() {
        return updUser;
    }

    public void setUpdUser(String updUser) {
        this.updUser = updUser;
    }

    public String getUpdHost() {
        return updHost;
    }

    public void setUpdHost(String updHost) {
        this.updHost = updHost;
    }

    public Date getUpdTime() {
        return updTime;
    }

    public void setUpdTime(Date updTime) {
        this.updTime = updTime;
    }
}